package com.digdes.calendar.model.impl;


import com.digdes.calendar.gwt.client.dto.EventParticipantDTOImpl;
import com.digdes.calendar.model.Event;
import com.digdes.calendar.model.EventParticipant;
import com.digdes.calendar.model.User;


public class EventParticipantImpl implements EventParticipant {
    private long id;
    private int status;
    private Event event;
    private User participant;

    EventParticipantImpl() {
    }
    EventParticipantImpl(EventParticipantDTOImpl eventParticipantDTO) {
        this.participant = new UserImpl(eventParticipantDTO.getParticipant());
        this.status = eventParticipantDTO.getStatus();
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Event getEvent() {
        return this.event;
    }

    public void setEvent(Event event) {
        this.event = event;
    }

    public User getParticipant() {
        return this.participant;
    }

    public void setParticipant(User participant) {
        this.participant = participant;
    }

}
